<template>
  <SelectCom :title="title" :search="{
    purchaseOrderState: 2,
    inStockState: 1,
  }" :isCheckbox="isCheckbox" :setObj="setObj" :maring="0" @selectBtn="selectBtn" type="Purchase">
    <template #default v-if="$slots.default">
      <slot></slot>
    </template>
  </SelectCom>
</template>
<script setup lang="ts">
import { onMounted, getCurrentInstance, onUnmounted } from 'vue';
const { proxy } = getCurrentInstance() as any;
const props = withDefaults(
  defineProps<{
    title?: string;
    isCheckbox?: boolean;//是否多选
    setObj?: any;
  }>(),
  {
    title: '采购单',
    size: 28,
  },
);
const emit = defineEmits<{
  //fn为父组件引入子组件是定义的子组件事件属性，可随意定义
  (event: 'selectBtn', row: any): void;
}>();
const selectBtn = (row: any) => {
  emit('selectBtn', row);
}
onMounted(() => {

});
onUnmounted(() => { });
</script>
<style scoped lang="scss"></style>
